<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鸡兔同笼</title>

</head>
<body>
    <script>
        var a= 0;
        var b =0;
        for (i =0;i<=35;i++){
            a=i;
            b=35-i;
            if(a*2+b*4==94){
                document.write("鸡:"+a+"只，兔："+b+"只");
            }
        }
    </script>
</body>
</html>